package com.young.core.enums;


public enum LockTypeEnum {

    LEAVE(-1,"离任"),
    STAY(0,"保持"),
    PROMOTED(1,"新晋"),
    UNKNOWN(2,"未知");

    public int code;
    public String meaning;

    LockTypeEnum(int code, String meaning) {
        this.code = code;
        this.meaning = meaning;
    }

    public static LockTypeEnum codeOf(int code) {
        for (LockTypeEnum e : values()) {
            if(e.code == code) {
                return e;
            }
        }
        return null;
    }

}
